|
PHY MAKE BOX CHARACTER CONTROLLER
Create a new box character controller.
PHY MAKE BOX CHARACTER CONTROLLER ID, x#, y#, z#, size x#, size y#, size z#, up, step#, slope limit#
ID
Integer
identification number of the character controller, these ID numbers are unique to character controllers
x#
Float
position of the character controller on the X axis
y#
Float
position of the character controller on the Y axis
z#
Float
position of the character controller on the Z axis
size x#
Float
size of the character controller on the X axis
size y#
Float
size of the character controller on the Y axis
size z#
Float
size of the character controller on the Z axis
up
Integer
defines which axis is pointing upwards, this will typically be 1 to represent the y axis, alternatives include 0 for x and 2 for z
step#
Float
used for stepping over obstacles, if the height of an obstacle is less than the step# value then the character controller can step over it, if this is not the case the character controller will not be able to move any further
slope limit#
Float
defines the limit for moving on polygons, for example, you may want to stop the character controller walking on polygons whose slope is high
A character controller is an ideal option for representing your character in game as it allows you to quickly get character movement and full collision with your scenery implemented.
No example code is provided for this command
|